import Layout from '@/layout'

const systemRoute = {
  path: '/sys',
  component: Layout,
  redirect: '/sys/user',
  name: 'sys',
  meta: {
    title: '系统管理',
    icon: 'dashboard',
    roles: ['admin']
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/pages/user/index'),
      name: 'user',
      meta: { title: '用户管理', roles: ['admin'] }
    },
    {
      path: 'enterprise',
      component: () => import('@/views/pages/enterprise/index'),
      name: 'enterprise',
      meta: { title: '企业管理', roles: ['admin'] }
    }
  ]
}
export default systemRoute
